package chars;

import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;
import java.nio.charset.Charset;

public class WriterTest2 {

	public static void main(String[] args) throws IOException {
		
		System.out.println( Charset.defaultCharset().name() );
		
		Writer w = new FileWriter( "file-writer.txt" );
		
		w.write( "青海长云暗雪山" );
		w.write( '\n' );
		
		w.write( "孤城遥望玉门关" );
		w.write( '\n' );
		
		w.close();

	}

}
